const FORM_CONFIG_LOGIN = {
  initModel: {
    email: '',
    password: '',
    code: '',
    uuid: ''
  }, // 默认值
  tempModel: {}, // 保存值
  formRootInstance: {
    // 整体表单配置
    wrapperCol: {
      span: 20,
      offset: 2
    },
    labelCol: {},
    layout: 'horizontal',
    formConfig: [],
    baseFormConfig: [{
        type: 'input',
        placeholder: '请输入邮箱/账号',
        prop: 'email',
        allowClear: true,
        sloteOptions: [{
          type: 'icon',
          sloteType: 'user',
          position: 'prefix',
          key: '1'
        }]
      },
      {
        type: 'password',
        placeholder: '请输入密码',
        prop: 'password',
        allowClear: true,
        sloteOptions: [{
          type: 'icon',
          sloteType: 'lock',
          position: 'prefix',
          key: '1'
        }]
      }
    ]
  },
  rules: {
    email: [{
      required: true,
      message: '账号不能为空',
      trigger: ['blur']
    }],
    password: [{
      required: true,
      message: '密码不能为空',
      trigger: ['blur']
    }],
    code: [{
      required: true,
      message: '验证码不能为空',
      trigger: ['blur']
    }]
  },
  submitButtonOptions: {
    wrapperCol: {
      span: 20,
      offset: 2
    },
    justify:'space-between',
    buttonList: [{
      title: '登录',
      block: true,
      col: 11,
      type: 'primary',
      cb: 'submit'
    }, {
      title: '注册',
      block: true,
      col: 11,
      type: 'primary',
      cb: 'register'
    }]
  }
}

module.exports = {
  FORM_CONFIG_LOGIN
}